﻿namespace dogd
{
	using System;

	/// <summary>
	/// Declares a column that is represented by a date time field.
	/// </summary>
	[AttributeUsage(AttributeTargets.Property)]
	public sealed class DateTimeColumnAttribute : ColumnAttribute
	{
		/// <summary>
		/// Initialize with the name of the column.
		/// </summary>
		/// <param name="columnName"></param>
		public DateTimeColumnAttribute(string columnName)
			: base(columnName)
		{
			this.StorageType = System.Data.DbType.DateTime;
		}
	}
}
